// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'lib-flexible/flexible'
import components from './components/index'
import Axios from 'axios'
import 'regenerator-runtime'

Vue.config.productionTip = false
Vue.use(components)
Vue.use(require('vue-wechat-title'))
/* eslint-disable no-new */

Vue.prototype.$axios = Axios
Axios.defaults.baseURL = '/api'
Axios.defaults.headers.post['Content-Type'] = 'application/json'

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
